//
//  sendPersonSetName.m
//  tcpoctest
//
//  Created by gump on 5/23/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendPersonSetName.h"

@implementation sendPersonSetName

-(void)SendSetNameP:(NSString *)name
{
    if (![self CheckLogin]) {
        return;
    }
    
    const char* namechar = [name UTF8String];
    
    int l = CHAR_PL * 3 + strlen(namechar) + INT_PL;
    
    [self initDataByLength:l];
    [sb WriteChar:strlen(namechar)];
    [sb WriteString:name withLength:strlen(namechar)];
    
    [self Package];
}

@end
